package kr.hkit.powerjava.chapter26;

import java.net.MalformedURLException;
import java.net.URL;

public class Ex01 {
	public static void main(String[] args) {
		try {
			StringBuilder sb=new StringBuilder();
			URL myURL=new URL("http://dic.naver.com/");
			sb.append(myURL.getProtocol()+"\n");
			sb.append(myURL.getAuthority());
			System.out.println(sb);
		}catch(MalformedURLException e){
			
		} catch (Exception e) {
			// TODO: handle exception
		}
	}
	}

